const path = require('path');
const { merge } = require('webpack-merge');
const base = require('./webpack.base.config');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');


module.exports = merge(base, {
    mode: "production",
    output: {
        filename: '[name].bundle.js',
        path: path.resolve(__dirname, '../dist/'),
        clean: true,
    },
    plugins: [
        new CleanWebpackPlugin({})
    ]
})
